#pragma once
#include "Dll6.h"

#define AVTOMATSKI_NACIN	0
#define ROCNI_NACIN			1

#define GUI		0
#define DIO		1
#define TERM	2
#define TEMM	3

//SPOROCILA GUI NITI
#define WM_GUI_ZIV				WM_APP + 100
#define WM_GUI_PREKINI			WM_APP + 101
#define WM_GUI_SEKONCUJE		WM_APP + 102
#define WM_GUI_BKONEC			WM_APP + 103
#define WM_GUI_KONCAJ			WM_APP + 104
#define WM_GUI_VX_ODPRI			WM_APP + 105	
#define WM_GUI_VX_ZAPRI			WM_APP + 106
#define WM_GUI_VX_BODPRI		WM_APP + 107
#define WM_GUI_M_VKLOPI			WM_APP + 108
#define WM_GUI_M_IZKLOPI		WM_APP + 109
#define WM_GUI_PX_VKLOPI		WM_APP + 110
#define WM_GUI_PX_IZKLOPI		WM_APP + 111
#define WM_GUI_GX_VKLOPI		WM_APP + 112
#define WM_GUI_GX_IZKLOPI		WM_APP + 113
#define WM_GUI_TVX_LEVO			WM_APP + 114
#define WM_GUI_TVX_DESNO		WM_APP + 115
#define WM_GUI_NASTAVI_TEMP		WM_APP + 116
#define WM_GUI_NAPRELE_IZKLOPI	WM_APP + 117
#define WM_GUI_MVX_NASTAVI_TEMP	WM_APP + 118
#define	WM_GUI_NACIN			WM_APP + 119
#define WM_GUI_KOLICINA_VODE	WM_APP + 120
#define	WM_GUI_STX_STATUS		WM_APP + 121
#define WM_GUI_DIALOG			WM_APP + 122

// CStrukturaStanja command target

class CTemmInit : public CObject
{
//dodan makro:
DECLARE_SERIAL (CTemmInit);

public:
	UINT m_nCasTimerZajemanja;
	UINT m_nCasTimerZivljenja;
	UINT m_nCasTimerGUIZivljenja;
	U16 m_nCOMPort;
	U16 m_nBaudRate;
	U16 m_nTimeOut;
	U16 m_nNaslovModula[255];
	float m_fMinTempSenzorja;
	float m_fMaxTempSenzorja;
public:
	CTemmInit();
	virtual ~CTemmInit();
	virtual void Serialize(CArchive& ar);
};

// CTermInit command target

class CTermInit : public CObject
{
	DECLARE_SERIAL (CTermInit);
//spremenljivke
public:
	UINT m_nCasTimerZivljenja;
	UINT m_nCasTimerGUIZivljenja;
	float m_fMaxTempMedija;
	float m_fMaxTempStene;
//metode
public:
	CTermInit();
	virtual ~CTermInit();
	virtual void Serialize(CArchive& ar);
};

enum UPR_EL {NEDEFINIRAN, V1, V2, V3, V4, V5, TV, P1, M, G1, G2, G3, G4, G5, ST1, ST2, ST3, MV, SP1, NAP_RELE};

//nastavitev recepta
typedef struct SAkcija
{
	UINT nFaza;
	UINT nStVsehFaz;
	CString strTrenutnaFaza;
	int nUpravljaniElement; 
	UINT nSporocilo;
	int nParameter;
	float fParameter;
	BOOL bParameter;
	CString strDialogTekst;
	CString strStatusBarTekst;
} SISAKCIJA;

class CRecept : public CObject
{
	DECLARE_SERIAL (CRecept);

//spremenljivke
public:
	SISAKCIJA *m_pTabelaAkcij;
	int m_nVelikostTabele;
	CString m_sNaslovRecepta;
	int m_nTrenutniIndeks;

//metode
public:
	CRecept();
	virtual ~CRecept();
	virtual void Serialize(CArchive& ar);
};


#pragma once


// CBlala

class CBlala : public CWnd
{
	DECLARE_DYNAMIC(CBlala)

public:
	CBlala();
	virtual ~CBlala();

protected:
	DECLARE_MESSAGE_MAP()
};


